package com.gdssoft.framework.dao.system;
/*
 *  捷达世软件(深圳)有限公司
 *  Copyright (C) 2008-2010 ShenZhen JieDaShi Software Limited Company.
*/
import java.util.List;
import com.gdssoft.framework.model.system.Department;
import com.gdssoft.core.dao.BaseDao;
import com.gdssoft.core.web.paging.PagingBean;

public interface DepartmentDao extends BaseDao<Department> {
	/**
	 * 查找下一级部门
	 * @param parentId
	 * @param pb
	 * @return
	 */
	public List<Department> findByParentId(Long parentId, PagingBean pb);
	public List<Department> findByParentId(Long parentId,Integer depLevel, PagingBean pb);
	/**
	 * 查找路径下所有部门
	 * @param path
	 * @param pb
	 * @return
	 */
	public List<Department> findByPath(String path, PagingBean pb);

	/**
	 * 
	 * @param officeId
	 * @param pb
	 * @return
	 */
	public List<Department> getByOfficeId(Long officeId,PagingBean pb);
	
	/**
	 * 
	 * @param companyId
	 * @param pb
	 * @return
	 */
	public List<Department> getByCompanyId(Long companyId, PagingBean pb);
	/**
	 * 
	 * @param path
	 * @param level
	 * @return
	 */
	public List<Department> findByPath(String path, int level);
	
}
